<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue应用</title>
    <script src="./js/vue (2).js"></script>
</head>

<body>
    <div id="app">
        <p v-text="baidu"></p>
        <p v-html="baidu1"></p>
        <p>
            用户名: <input type="text" @input="bluraa" v-model="username" name="" placeholder="请输入用户名" id="">
        </p>
        <div>
            {{username}}
        </div>
    </div>
    <script>
        const app = new Vue({
            el: "#app",
            data: {
                baidu: "百度一下你就知道",
                baidu1: `<a href="http://www.baidu.com">百度一下</a>`,
                username: "lily"

            },
            mounted() {

            },
            methods: {
                changeFn: function (evt) {

                },
                bluraa: function () {
                    console.log(this.username);
                }
            }
        });
    </script>

</body>

</html>